import './mock/index'
import Vue from 'vue';
import App from './App.vue';
import './styles/global.less';
import router from './router/index';
import showMessage from './util/showMessage';
import './eventBus';
import store from './store';
store.dispatch('setting/fetchSetting');
Vue.prototype.$showMessage = showMessage;

import Vloading from '@/directives/loading.js';
import Vlazy from '@/directives/lazy.js';
Vue.directive('loading',Vloading);
Vue.directive('lazy',Vlazy);
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app');


